import request from '/@/utils/request';

export async function queryBox(cabinetId: number, col: number, direction: number) {
	return await request({
		url: `/room/box/${cabinetId}/${col}/${direction}/query`,
		method: 'get',
	});
}

export async function post(params?: object) {
	return await request({
		url: '/room/box/post',
		method: 'post',
		data: params,
	});
}

export async function put(params?: object) {
	return await request({
		url: '/room/box/put',
		method: 'put',
		data: params,
	});
}

export async function deleteBox(cabinetId: number, col: number, direction: number, row: number) {
	return await request({
		url: `/room/box/${cabinetId}/${col}/${direction}/${row}/delete`,
		method: 'get',
	});
}
